<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title></title>
	<meta name="title" content="" />
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<link rel="stylesheet" href="/styleadddiscussion.css" type="text/css" media="screen, projection" />
	<!--[if lte IE 6]><link rel="stylesheet" href="style_ie.css" type="text/css" media="screen, projection" /><![endif]-->
</head>

<body>

<div id="wrapper">

	<div id="header">
   {%if user %}
   Hello {{user}} ! 
   <input name="button" type="button" value="Выйти" onclick="top.location.href='http://127.0.0.1:8000/accounts/logout/'" />
   {%else%}
   <input name="button" type="button" value="Войти" onclick="top.location.href='http://127.0.0.1:8000/accounts/login/'" />
	  <p>&nbsp;</p>
      {%endif%}
	</div>
	<!-- #header-->

	<div id="content">
	<div id="theme">
      <p>&nbsp;</p>
	  {%for theme in alltheme%}
      <p><a href="http://127.0.0.1:8000/theme/{{theme.id}}/">{{theme.title}}</a>
	  {%endfor%}
      <p>&nbsp;</p>
	</div>  <!--theme-->
    <div id="adddiscussion">
 <p>&nbsp;</p>
 <form action='/adddiscussion/{{curdiscussion}}/' method='post'>{% csrf_token %} 
   <p>    </p>
   <p>Название дискусии</p>
   <p>
  <input name="title" type="text" size="30" />
   </p>
   <p>Текст дискусии</p>
   <p>
     
     <textarea name="message" id="message" cols="45" rows="5"></textarea>
 </p>
   <p>
     </p>
     <input type="submit" value="Добавить" />
   </p>
</form>

    </div> 	
  </div><!-- #content-->

	
</div><!-- #wrapper -->

</body>
</html>